using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class QQGroup : GeneratedMessageLite<QQGroup, QQGroup.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<QQGroup, QQGroup.Builder>
		{
			private bool resultIsReadOnly;
			private QQGroup result;
			protected override QQGroup.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override QQGroup MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override QQGroup DefaultInstanceForType
			{
				get
				{
					return QQGroup.DefaultInstance;
				}
			}
			public uint GroupID
			{
				get
				{
					return this.result.GroupID;
				}
				set
				{
					this.SetGroupID(value);
				}
			}
			public string GroupName
			{
				get
				{
					return this.result.GroupName;
				}
				set
				{
					this.SetGroupName(value);
				}
			}
			public string MD5
			{
				get
				{
					return this.result.MD5;
				}
				set
				{
					this.SetMD5(value);
				}
			}
			public uint MemberNum
			{
				get
				{
					return this.result.MemberNum;
				}
				set
				{
					this.SetMemberNum(value);
				}
			}
			public uint WeixinNum
			{
				get
				{
					return this.result.WeixinNum;
				}
				set
				{
					this.SetWeixinNum(value);
				}
			}
			public Builder()
			{
				this.result = QQGroup.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(QQGroup cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private QQGroup PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					QQGroup other = this.result;
					this.result = new QQGroup();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override QQGroup.Builder Clear()
			{
				this.result = QQGroup.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override QQGroup.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new QQGroup.Builder(this.result);
				}
				return new QQGroup.Builder().MergeFrom(this.result);
			}
			public override QQGroup BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override QQGroup.Builder MergeFrom(IMessageLite other)
			{
				if (other is QQGroup)
				{
					return this.MergeFrom((QQGroup)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override QQGroup.Builder MergeFrom(QQGroup other)
			{
				return this;
			}
			public override QQGroup.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override QQGroup.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(QQGroup._qQGroupFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = QQGroup._qQGroupFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasGroupID = input.ReadUInt32(ref this.result.groupID_);
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasGroupName = input.ReadString(ref this.result.groupName_);
							continue;
						}
					}
					else
					{
						if (num3 == 26u)
						{
							this.result.hasMD5 = input.ReadString(ref this.result.mD5_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasMemberNum = input.ReadUInt32(ref this.result.memberNum_);
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasWeixinNum = input.ReadUInt32(ref this.result.weixinNum_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public QQGroup.Builder SetGroupID(uint value)
			{
				this.PrepareBuilder();
				this.result.hasGroupID = true;
				this.result.groupID_ = value;
				return this;
			}
			public QQGroup.Builder ClearGroupID()
			{
				this.PrepareBuilder();
				this.result.hasGroupID = false;
				this.result.groupID_ = 0u;
				return this;
			}
			public QQGroup.Builder SetGroupName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasGroupName = true;
				this.result.groupName_ = value;
				return this;
			}
			public QQGroup.Builder ClearGroupName()
			{
				this.PrepareBuilder();
				this.result.hasGroupName = false;
				this.result.groupName_ = "";
				return this;
			}
			public QQGroup.Builder SetMD5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMD5 = true;
				this.result.mD5_ = value;
				return this;
			}
			public QQGroup.Builder ClearMD5()
			{
				this.PrepareBuilder();
				this.result.hasMD5 = false;
				this.result.mD5_ = "";
				return this;
			}
			public QQGroup.Builder SetMemberNum(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMemberNum = true;
				this.result.memberNum_ = value;
				return this;
			}
			public QQGroup.Builder ClearMemberNum()
			{
				this.PrepareBuilder();
				this.result.hasMemberNum = false;
				this.result.memberNum_ = 0u;
				return this;
			}
			public QQGroup.Builder SetWeixinNum(uint value)
			{
				this.PrepareBuilder();
				this.result.hasWeixinNum = true;
				this.result.weixinNum_ = value;
				return this;
			}
			public QQGroup.Builder ClearWeixinNum()
			{
				this.PrepareBuilder();
				this.result.hasWeixinNum = false;
				this.result.weixinNum_ = 0u;
				return this;
			}
		}
		public const int GroupIDFieldNumber = 1;
		public const int GroupNameFieldNumber = 2;
		public const int MD5FieldNumber = 3;
		public const int MemberNumFieldNumber = 4;
		public const int WeixinNumFieldNumber = 5;
		private static readonly QQGroup defaultInstance;
		private static readonly string[] _qQGroupFieldNames;
		private static readonly uint[] _qQGroupFieldTags;
		private bool hasGroupID;
		private uint groupID_;
		private bool hasGroupName;
		private string groupName_ = "";
		private bool hasMD5;
		private string mD5_ = "";
		private bool hasMemberNum;
		private uint memberNum_;
		private bool hasWeixinNum;
		private uint weixinNum_;
		private int memoizedSerializedSize = -1;
		public static QQGroup DefaultInstance
		{
			get
			{
				return QQGroup.defaultInstance;
			}
		}
		public override QQGroup DefaultInstanceForType
		{
			get
			{
				return QQGroup.DefaultInstance;
			}
		}
		protected override QQGroup ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint GroupID
		{
			get
			{
				return this.groupID_;
			}
		}
		public string GroupName
		{
			get
			{
				return this.groupName_;
			}
		}
		public string MD5
		{
			get
			{
				return this.mD5_;
			}
		}
		public uint MemberNum
		{
			get
			{
				return this.memberNum_;
			}
		}
		public uint WeixinNum
		{
			get
			{
				return this.weixinNum_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasGroupID && this.hasMemberNum && this.hasWeixinNum;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasGroupID)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.GroupID);
				}
				if (this.hasGroupName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.GroupName);
				}
				if (this.hasMD5)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.MD5);
				}
				if (this.hasMemberNum)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.MemberNum);
				}
				if (this.hasWeixinNum)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.WeixinNum);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private QQGroup()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] qQGroupFieldNames = QQGroup._qQGroupFieldNames;
			if (this.hasGroupID)
			{
				output.WriteUInt32(1, qQGroupFieldNames[0], this.GroupID);
			}
			if (this.hasGroupName)
			{
				output.WriteString(2, qQGroupFieldNames[1], this.GroupName);
			}
			if (this.hasMD5)
			{
				output.WriteString(3, qQGroupFieldNames[2], this.MD5);
			}
			if (this.hasMemberNum)
			{
				output.WriteUInt32(4, qQGroupFieldNames[3], this.MemberNum);
			}
			if (this.hasWeixinNum)
			{
				output.WriteUInt32(5, qQGroupFieldNames[4], this.WeixinNum);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasGroupID)
			{
				num ^= this.groupID_.GetHashCode();
			}
			if (this.hasGroupName)
			{
				num ^= this.groupName_.GetHashCode();
			}
			if (this.hasMD5)
			{
				num ^= this.mD5_.GetHashCode();
			}
			if (this.hasMemberNum)
			{
				num ^= this.memberNum_.GetHashCode();
			}
			if (this.hasWeixinNum)
			{
				num ^= this.weixinNum_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			QQGroup qQGroup = value as QQGroup;
			return qQGroup != null && (this.hasGroupID == qQGroup.hasGroupID && (!this.hasGroupID || this.groupID_.Equals(qQGroup.groupID_))) && (this.hasGroupName == qQGroup.hasGroupName && (!this.hasGroupName || this.groupName_.Equals(qQGroup.groupName_))) && (this.hasMD5 == qQGroup.hasMD5 && (!this.hasMD5 || this.mD5_.Equals(qQGroup.mD5_))) && (this.hasMemberNum == qQGroup.hasMemberNum && (!this.hasMemberNum || this.memberNum_.Equals(qQGroup.memberNum_))) && (this.hasWeixinNum == qQGroup.hasWeixinNum && (!this.hasWeixinNum || this.weixinNum_.Equals(qQGroup.weixinNum_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<QQGroup, QQGroup.Builder>.PrintField("GroupID", this.hasGroupID, this.groupID_, writer);
			GeneratedMessageLite<QQGroup, QQGroup.Builder>.PrintField("GroupName", this.hasGroupName, this.groupName_, writer);
			GeneratedMessageLite<QQGroup, QQGroup.Builder>.PrintField("MD5", this.hasMD5, this.mD5_, writer);
			GeneratedMessageLite<QQGroup, QQGroup.Builder>.PrintField("MemberNum", this.hasMemberNum, this.memberNum_, writer);
			GeneratedMessageLite<QQGroup, QQGroup.Builder>.PrintField("WeixinNum", this.hasWeixinNum, this.weixinNum_, writer);
		}
		public static QQGroup ParseFrom(byte[] data)
		{
			return QQGroup.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private QQGroup MakeReadOnly()
		{
			return this;
		}
		public static QQGroup.Builder CreateBuilder()
		{
			return new QQGroup.Builder();
		}
		public override QQGroup.Builder ToBuilder()
		{
			return QQGroup.CreateBuilder(this);
		}
		public override QQGroup.Builder CreateBuilderForType()
		{
			return new QQGroup.Builder();
		}
		public static QQGroup.Builder CreateBuilder(QQGroup prototype)
		{
			return new QQGroup.Builder(prototype);
		}
		static QQGroup()
		{
			QQGroup.defaultInstance = new QQGroup().MakeReadOnly();
			QQGroup._qQGroupFieldNames = new string[]
			{
				"GroupID",
				"GroupName",
				"MD5",
				"MemberNum",
				"WeixinNum"
			};
			QQGroup._qQGroupFieldTags = new uint[]
			{
				8u,
				18u,
				26u,
				32u,
				40u
			};
			object.ReferenceEquals(micromsg.Proto.QQGroup.Descriptor, null);
		}
	}
}
